/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import baseConfig from '@/lib/config/config.base';
import type { IconFontConfig } from '@base/components/iconFont';
import type { IframeConfig } from '@base/components/iframe/_utils/';
import type { ConstantsConfig } from '@base/utils/constants';
import type { UtilsConfig } from '@base/utils/user';
import { SeoMap } from './components/seo/_utils';

const {
  iframe = {
    routesMap: {},
  } as IframeConfig,
  iconFont = {} as IconFontConfig,
  constants = {} as ConstantsConfig,
  utils: baseUtils,
  seoMap = {} as SeoMap,
} = baseConfig();
const utils: UtilsConfig = {
  loginPath: '/user/login',
  iv: 'kuaidihelp666666',
  loginExpired: ({ code }: { code: number }) => Promise.resolve(`${code}` === '1011'),
  ...baseUtils,
};

export { iframe, iconFont, constants, utils, seoMap };
